#! /usr/bin/env python
# -*- coding: utf-8 -*-

import wx
from wx.animate import GIFAnimationCtrl

class Frame(wx.Frame):

    def __init__(self, parent=None, title='gif animation'):
        wx.Frame.__init__(self, parent=parent, title=title)

class App(wx.App):

    def OnInit(self):
        frame = Frame()
        runTest(frame)
        frame.Show()
        return True

#----------------------------------------------------------------------

def runTest(nb):
    win = wx.Panel(nb, -1)
    name = 'bitmaps/AG00178_.gif'
    ani = GIFAnimationCtrl(nb, -1, name)
    ani.Play()
    return win

#----------------------------------------------------------------------

if __name__ == '__main__':
    app = App()
    app.MainLoop()

